package com.snoob.lixing.exception;

/**
 * Created with IntelliJ IDEA
 * User: lixing
 * Date: 2018/11/25 22:37
 * <p>
 * 自定义异常类：
 * - 手动抛出：throw new CustomerException(ResultEnum.ERROR_LOGIN_VALIDATE);
 * - spring 对于 RuntimeException 异常会进行事务回滚
 */
public class CustomerException extends RuntimeException {

    private String expMessage;

    public CustomerException() {
    }

    public CustomerException(String msg) {
        this.expMessage = msg;
    }

    public String getExpMessage() {
        return expMessage;
    }

    public void setExpMessage(String expMessage) {
        this.expMessage = expMessage;
    }
}
